package com.liyuan.yiqixing.model;

public class Comment {
    private Integer id;
    private Integer targetId;//被评论的对象的id
    private User userComment;//评论者的userId
    private User userCommented;//被评论者的userId
    private String modifiedAt;
    private Integer likeCount;
    private String content;
    private Integer isRead;
    private Integer type;//有Discussion和COmment两张表，如何凭借一个targetId找到是哪个？？

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    public Comment() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    public String getModifiedAt() {
        return modifiedAt;
    }

    public void setModifiedAt(String modifiedAt) {
        this.modifiedAt = modifiedAt;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public User getUserComment() {
        return userComment;
    }

    public void setUserComment(Integer userCommentId) {
        this.userComment = new User();
        this.userComment.setId(userCommentId);
    }

    public User getUserCommented() {
        return userCommented;
    }

    public void setUserCommented(Integer userCommentedId) {
        this.userCommented =new User();
        this.userCommented.setId(userCommentedId);
    }
}
